package com.tyut.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyut.entity.Files;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * <p>
 * 文件数据表 服务类
 * </p>
 *
 * @author 李嘉昕
 * @since 2025-03-18
 */
public interface FilesService extends IService<Files> {
    Files getFiles(String md5 , Long size , String type);

    String fileUpload(String bucket , MultipartFile file , Long count , String oldPath) throws IOException, ServerException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

}
